//
//  ThirdViewController.m
//  Lesson
//
//  Created by centling on 15/4/17.
//  Copyright (c) 2015年 Seas.CHENG. All rights reserved.
//

#import "ThirdViewController.h"

@interface ThirdViewController ()

@end

@implementation ThirdViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"Third";
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (IBAction)root:(id)sender {
    [self.navigationController popToRootViewControllerAnimated:YES];
}

- (IBAction)index:(id)sender {
    UIViewController *vc=[self.navigationController.viewControllers objectAtIndex:0];
    [self.navigationController popToViewController:vc animated:YES];
}

- (IBAction)back:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)next:(id)sender {
    UIViewController *fourthVC=[self.storyboard instantiateViewControllerWithIdentifier:@"fourth"];
    [self.navigationController pushViewController:fourthVC animated:YES];
}
@end
